package com.itheima.wms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.wms.common.service.ICrudService;
import com.itheima.wms.entity.StockEntity;
import com.itheima.wms.vo.StockDetailVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 业务接口
 * 库存
 * </p>
 */
public interface StockService extends ICrudService<StockEntity> {

    IPage<StockDetailVO> pageDetail(Page<StockDetailVO> page, Map data);

    List<StockDetailVO> listDetail(Map data);

    StockEntity getOneByLocationId(Long id);

    boolean frozen(Long stockId, Integer num);

    boolean unfreeze(Long stockId, Integer num);
}
